<template>
  <div id="tuijain-compoent">
    <div class="item" v-for="(item, index) in datas" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <span>{{ item.title }}</span>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: "tuijian",
  props: {
    datas: {
      type: Array,
      default: {
        return: [],
      },
    },
  },
}
</script>

<style lang="less" scoped>
#tuijain-compoent {
  display: flex;
  width: 100%;
  padding-top: 15px;
  text-align: center;
  background-color: #fff;
  .item {
    flex: 1;
    img {
      display: block;
      width: 100%;
      height: 80%;
      box-sizing: border-box;
      padding: 5px;
    }
    span {
      font-size: 12px;
    }
  }
}
</style>
